package com.gxa.zhonglong.service.impl;

import com.gxa.zhonglong.mapper.IoGetMapper;
import com.gxa.zhonglong.pojo.IoGet;
import com.gxa.zhonglong.service.IoGetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("IoGetService")
@Transactional(rollbackFor = {Throwable.class})
public class IoGetServiceImpl implements IoGetService {
    @Autowired
    IoGetMapper ioGetMapper;

    @Override
    public void add(IoGet ioGet) {
        ioGetMapper.add(ioGet);
    }

    @Override
    public List<String> selectByNum(String num) {
        return ioGetMapper.selectByNum(num);
    }

    @Override
    public void delete(String num) {
        ioGetMapper.delete(num);
    }
}
